<template>
<div> 
<div class="title">热销推荐</div>	
<ul>
	<li class="item border-bottom" v-for="item of list" :key="item.id">
		<img  class="item-img" :src="item.imgUrl"/>
		<div class="item-info">
		<p class="item-title">
			{{item.title}}
		</p>
		<p class="item-desc">{{item.desc}}</p>
		<button class="item-button">查看详情</button>
		</div>
	</li>
</ul>
</div>

</template>

<script >

export default{
  name:'HomeRecommend',
  props: {
  	list: Array
  }
 }
</script>
<style lang="stylus" scoped>
  @import '~styles/mixins.styl'
  .title
    margin-top: .4rem
    line-height: 1.6rem
    background: #eee
    text-indent: .4rem
  .item
    overflow: hidden
    display: flex
    height: 3.8rem
    .item-img
      width: 5rem
      height: 5rem
      padding: .2rem
    .item-info
      flex: 1
      padding: .2rem
      min-width: 0
      .item-title
        line-height: 1.08rem
        font-size: .64rem
        ellipsis()
      .item-desc
        line-height: .7rem
        color: #ccc
        ellipsis()
      .item-button
        line-height: .88rem
        margin-top: .4rem
        background: #ff9300
        padding: 0 .4rem
        border-radius: .12rem
        color: #fff
</style>




	


</style>	